/*
 * $Id: winapi.h,v 1.6 2006-02-07 05:28:58 bacon Exp $
 */

#ifndef _XP_BAS_WINAPI_H_
#define _XP_BAS_WINAPI_H_

#include <xp/types.h>
#include <xp/macros.h>
#include <winsock2.h>
#include <windows.h>
#include <sys/stat.h>

#define XP_HND_INVALID (INVALID_HANDLE_VALUE)
typedef HANDLE xp_hnd_t;

typedef DWORD     xp_pid_t;
typedef int       xp_mode_t;
typedef xp_long_t xp_off_t;
typedef struct stat xp_stat_t;

/* maximum path length */
#define XP_PATH_MAX MAX_PATH


#ifdef __cplusplus
extern "C" {
#endif

xp_pid_t xp_getpid (void);

#ifdef __cplusplus
}
#endif

#endif
